/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package modele;

import java.util.Collection;
import java.util.TreeSet;

/**
 *
 * @author gazzopardi
 */
public class Pays {

    
    private Collection<Dep> lesDeps = new TreeSet<Dep>();

    public Pays() {
        lesDeps = DAO.getLesDeps();
    }

    public Collection getLesDeps() {
        return lesDeps;
    }

    public Dep getLeDep(String numDep) {
        for (Dep d :lesDeps){
            if (numDep.equals(d.getNum())){
                return d;
            }
        }
        return null;
    }
}
